.header {
  overflow-x: hidden;
}

.header__wrapper {
  background-color: $header-background;
}

.header__nav {
  display: flex;
  padding-top: 20px;
  padding-bottom: 16px;
}

.header__logo {
  margin: 0;
  margin-right: 114px;
}

.header__logo-link {
  color: inherit;

  &:is([href]):hover,
  &:is([href]):focus {
    opacity: 0.7;
  }

  &:is([href]):active {
    opacity: 0.3;
  }
}

.header__main-nav-list,
.header__user-nav-list {
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.header__main-nav-list {
  width: 550px;
  margin: 15px auto 15px -40px;
}

.header__main-nav-item {
  margin: 10px 0 10px 40px;
}

.header__main-nav-link {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.078em;
  color: inherit;

  &:hover,
  &:focus {
    opacity: 0.7;
  }

  &:active {
    opacity: 0.3;
  }
}

.header__user-nav-list {
  margin: 14px 10px 14px -30px;
  width: 155px;
  justify-content: flex-end;
}

.header__user-nav-item {
  margin: 10px 0 10px 30px;
}

.header__user-nav-link {
  display: block;
  width: 20px;
  height: 20px;
  position: relative;

  &--basket {
    width: 24px;
  }

  &::before {
    content: "";
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    transform: translate(-50%, -42%);
  }

  &--location::before {
    height: 17px;
    background-image: url(./img/location-icon.svg);
  }

  &--search::before {
    background-image: url(./img/search-icon.svg);
  }

  &--basket::before {
    background-image: url(./img/basket-icon.svg);
    left: 0;
    transform: translate(1px, -50%);
  }

  &:is([href]):hover::before,
  &:is([href]):focus::before {
    opacity: 0.7;
  }

  &:is([href]):active::before {
    opacity: 0.3;
  }
}

.header__quantity-items-in-basket {
  font-size: 10px;
  line-height: 12px;
  color: $basket-quantity;
  position: absolute;
  top: 1px;
  left: 18px;
}

.header__decorative-wrapper {
  height: 272px;
  position: relative;

  &::before {
    content: "";
    width: 100%;
    height: 84px;
    background-image: url("data:image/svg+xml,%3Csvg width='1' height='14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%233F3F3F' d='M0 0h1v4H0z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: repeat;
    position: absolute;
    bottom: 171px;
  }
}

.header__decorative-guitar {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-35.2%);
}
